#ifndef __MSG_TOOL_H__
#define __MSG_TOOL_H__

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
# include <sys/ipc.h>

#define MQ_COMMOND_INIT_READY	1001
#define MQ_COMMOND_ACTIVE	1002
#define MQ_COMMOND_NON_ACTIVE	1003
#define MQ_COMMOND_PLAY_ACTIVE 1004
#define MQ_COMMOND_PAUSE_ACTIVE 1005


#define MAX_SEND_SIZE		32

typedef struct mymsgbuf
{
	long	mtype;
	short	mcommond;
	char	mtext[MAX_SEND_SIZE];
}Message;

int	init_message_queue(void);
void	send_message(Message *qbuf, int flag);
int	read_message(Message *qbuf, int flag);

#endif
